//类型
//变量声明：类型 = 值
var bool = true;
var bool1 = false;
// const bool2:boolean = 0  此方法不可取
//数字
var num = 123;
//字符串
var str1 = '123';
//数组
var arr = [1, 2, 3, 4, 5];
var arr1 = [true, false, 1, '122', true];
//元祖（就是数组，属于特殊数组）只能两个
var tuple1 = [1, '123'];
//枚举
var Color;
(function (Color) {
    Color[Color["red"] = 0] = "red";
    Color[Color["Yellow"] = 1] = "Yellow";
    Color[Color["Green"] = 2] = "Green";
})(Color || (Color = {}));
console.log(Color.red); //=> 0 通过color.red  就是下标0
console.log(Color[0]); // 通过下标0 也可以找到 color为red


